package com.lifo.user.dao;

import com.lifo.user.bean.model.HfUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created by Administrator on 2018/6/24.
 */
@Mapper
public interface HfUserMapper {

    /**
     * 通过手机号查询用户
     * @param mobile 手机号
     * @return
     */
    HfUser searchHfUserByMobile(String mobile);


    /**
     * 注册用户
     * @param hfUser
     * @return
     */
    Integer saveHfUser(HfUser hfUser);

    /**
     * 判断手机号是否存在
     * @param mobile
     * @return
     */
    Integer searchMobileIsExist(String mobile);
}
